package com.business.dynamic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 *  实体类
 * @author chenjiehong
 * @date 2020-03-08 23:38:51
 * @since 1.0
 */
@TableName(value = "dynamic_type")
public class DynamicType extends Model<DynamicType> {

	private static final long serialVersionUID = 1L;

    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 名称
	 */
	private String name; 

	/**
	 * 图标
	 */
	private String icon;

	@TableField("icon_type")
	private String iconType;

	/**
	 * 状态 1：正常 0：不显示
	 */
	private Integer state;

	/**
	 * 排序 从小到大
	 */
	private Integer sort;
	// columns END

	@Override
	protected Serializable pkVal() {
		return id;
	}

	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public String getName() {
		return name;
	}

    public void setName(String name) {
    	this.name = name;
    }
	public String getIcon() {
		return icon;
	}

    public void setIcon(String icon) {
    	this.icon = icon;
    }
	public Integer getState() {
		return state;
	}

    public void setState(Integer state) {
    	this.state = state;
    }

	public String getIconType() {
		return iconType;
	}

	public void setIconType(String iconType) {
		this.iconType = iconType;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[name:" + getName() + "]";
		log += "[icon:" + getIcon() + "]";
		log += "[state:" + getState() + "]";
		return log;
	}
}